<script>mascara();</script>
<div class="conteudo">
    <div class="row-fluid">
        <div class="span5 offset0">
            <form class="margin30px padding20px" name="formLogin" id="formLogin" action="{$smarty.const.URL_BANCO}login.php" method="post" enctype="multipart/form-data">
                <h1>Entrar</h1>
                <div class="divForm">
                    <div class="span12 offset0"></div>
                    {if $MSG && $smarty.get.msg eq 5}
                        <div class="alert floatLeft width96percent {$TIPO_MSG}" align="center">
                            <button class="close" data-dismiss="alert"  type="button">x</button>
                            <strong>{$TITULO_MSG}</strong><br />
                            {$MSG}
                        </div>
                    {/if}
                    <div class="control-group">
                        <label class="control-label" for="login">Login:</label>
                        <div class="controls">
                            <input type="text" placeholder="Login" name="login" id="login" value="{$smarty.request.email}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="login">Senha:</label>
                        <div class="controls">
                            <input type="password" placeholder="Senha" name="senha" id="senha"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <div class="controls">
                            <label class="checkbox">
                                <input type="checkbox"> Lembre-se de mim
                            </label>
                            <button class="btn btn-personalizado" onclick="validaForm('formLogin');" type="submit">Entrar</button>
                        </div>
                    </div>
                        {$BT_LOGAR_FACEBOOK}
                </div>
            </form>

            <form class="margin30px padding20px" name="formEsqSenha" id="formEsqSenha" action="{$smarty.const.URL_FUNCAO_GET_POST}Y2xhc3NlPWV4ZWN1dGFGdW5jb2VzJmZ1bmNhbz1lc3F1ZWNldVNlbmhh" method="post" enctype="multipart/form-data">
                <h1>Esqueceu a Senha?</h1>
                {if $MSG && $smarty.get.msg eq 6 || $smarty.get.msg eq 7}
                    <div class="alert floatLeft width96percent {$TIPO_MSG}" align="center">
                        <button class="close" data-dismiss="alert"  type="button">x</button>
                        <strong>{$TITULO_MSG}</strong><br />
                        {$MSG}
                    </div>
                {/if}
                <div class="control-group">
                    <div class="controls">
                        <p>Informe seu email, enviaremos um link de acesso para você refazer a senha.</p>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="email_esq">Email:</label>
                    <div class="controls">
                        <input type="text" placeholder="Email" name="email_esq" id="email_esq"/>
                    </div>
                </div>
                {$CAPTCHA}
                <div class="control-group">
                    <div class="controls">
                        <button class="btn btn-personalizado" onclick="validaForm('formEsqSenha');" type="submit">Solicitar</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="span1 offset0 marginTop20px height700px borderRight1px">

        </div>
        <div class="span6 offset0">
            {CHAMA_FUNCAO funcao="getCaminhoPastaBanco" classe="imprimiConteudo"}
            <form  class="margin30px padding20px"  name="formCadUsuario" id="formCadUsuario" action="{$smarty.const.URL_FUNCAO_GET_POST}Y2xhc3NlPWV4ZWN1dGFGdW5jb2VzJmZ1bmNhbz1jYWRhc3RyYVVzdWFyaW8=" method="post" enctype="multipart/form-data">
                <h1>Cadastre-se</h1>
                <div class="divForm">
                    <input style="display:none" type="text" name="tabela" id="tabela" value="tb_usuario" />
                    <input style="display:none" type="text" name="id" id="id" value="id_usuario" />
                    <input style="display:none" type="text" name="url" id="url" value="{$URLATUAL}" />
                    <div class="span12 offset0"></div>
                    {if $MSG && $smarty.get.msg neq 5 && $smarty.get.msg neq 6 && $smarty.get.msg neq 7}
                        <div class="alert floatLeft width96percent {$TIPO_MSG}" align="center">
                            <button class="close" data-dismiss="alert"  type="button">x</button>
                            <strong>{$TITULO_MSG}</strong><br />
                            {$MSG}
                        </div>
                    {/if}

                    <label class="label-xlarge" for="nome_usuario">Nome:
                        <input class="input-xxlarge" type="text" placeholder="Nome" name="nome_usuario" id="nome_usuario"  value="{$smarty.session.post_cad_user.nome_usuario}"/>
                    </label>
                    <div class="span12 offset0 minHeight0"></div>
                    <label class="label-large" for="email_usuario">Email:
                        <input class="input-large" type="text" placeholder="Email" name="email_usuario" id="email_usuario"  value="{$smarty.session.post_cad_user.email_usuario}"/>
                    </label>
                    <div class="span12 offset0 minHeight0"></div>
                    <label class="label-large" for="email_opcional">Email Auxiliar:
                        <input class="input-large" type="text" placeholder="Email Opcional" name="email_opcional" id="email_opcional"  value="{$smarty.session.post_cad_user.email_opcional}"/>
                    </label>
                    <div class="span12 offset0 minHeight0"></div>
                    <label class="label-large" for="telefone_1">Telefone:
                        <input class="input-large" type="text" placeholder="Telefone" name="telefone_1" id="telefone_1"  value="{$smarty.session.post_cad_user.telefone_1}"/>
                    </label>
                    <div class="span12 offset0 minHeight0"></div>
                    <label class="label-large" for="telefone_2">Telefone Comercial:
                        <input class="input-large" type="text" placeholder="Telefone Comercial" name="telefone_2" id="telefone_2"  value="{$smarty.session.post_cad_user.telefone_2}"/>
                    </label>
                    <div class="span12 offset0 minHeight0"></div>
                    <label class="label-large" for="fax">Fax:
                        <input class="input-large" type="text" placeholder="Fax" name="fax" id="fax"  value="{$smarty.session.post_cad_user.fax}"/>
                    </label>
                    <div class="span12 offset0 minHeight0"></div>
                    <label class="label-large" for="celular">Celular:
                        <input class="input-large" type="text" placeholder="Celular" name="celular" id="celular"  value="{$smarty.session.post_cad_user.celular}"/>
                    </label>
                    <label class="label-medium" for="password_usuario">Senha:
                        <input class="input-medium" type="password" placeholder="Senha" name="password_usuario" id="password_usuario"/>
                    </label>
                    <div class="span12 offset0 minHeight0"></div>
                    <label class="label-medium" for="confirma_password">Confirme a Senha:
                        <input class="input-medium" type="password" placeholder="Confirma Senha" name="confirma_password" id="confirma_password"/>
                    </label>
                    {$CAPTCHA}
                    <div class="span12 offset0 divBotoesBaixo">
                        <button class="btn btn-personalizado" onclick="validaForm('formCadUsuario');" type="submit">Cadastrar</button>
                        <button class="btn btn-personalizado" type="button" onclick="window.location = '{$smarty.const.URL_PASTA_SITE}'">Cancelar</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{CHAMA_FUNCAO funcao="destroiSessaoPost" classe="imprimiConteudo" nome_sessao="post_cad_user"}
